#ifndef _SOCKIO_HH_
#define _SOCKIO_HH_
#include<string>

using std::string;

class SockIo
{
public:
    SockIo(int fd);
    ~SockIo();
    int readn(int size,char*  buf);
    int write(int size, const char*  buf);
    int readline(int size,char* buf);
private:
    int _fd;
};
#endif
